package IMIC_TrinhCongDoc.bai01;

public class control {
	//1.data field
	private model model01;
	//2. ham khoi dung cho control
	public control(){
		model01 = new model();
		
		
	}
	//3 uy quyen thuc thi nghiep vu
	public boolean CheckUse (use use01){
		if (model01.KTdangnhap(use01)){
			return true;
		}else{
			return false;
			
		}
		
	}
	public boolean CheckUse01 (use use01){
		if (model01.KTpass(use01)){
			return true;
		}else {
			return false;
		}
	}
	public boolean Checklogin (use use01){
		if (model01.KTlogin(use01)){
			return true;
		}else{return false;
	}
	
	
	}}
